<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="node_modules/react/umd/react.development.js"></script>
    <script src="node_modules/react-dom/umd/react-dom.development.js"></script>
    <script src="node_modules/babel-standalone/babel.min.js"></script>
</head>

<body>
    <div id="app"></div>
    <script type="text/babel">
        // 注释:
        let msg = <div>
            {/* 在这里写注释 */}
            这是一个div标签内容
        </div>
        // 多行标签：JSX语法中有多个标签时，必须使用父元素把多个标签包裹起来,并建议使用()将整个最外层标签包起来
        let content = (<div>
            <h1>标题</h1>
            <p>内容</p>
        </div>)
        ReactDOM.render(msg, document.getElementById('app'))
        ReactDOM.render(content, document.getElementById('app'))
    </script>
</body>

</html>